/**
 * GUI - Oversigt
 * @author Mikkel Christiansen
 */

package com.kea.firsthorse.client;

import com.google.gwt.user.client.ui.HTML;
import com.kea.firsthorse.shared.HorsePolicy;

public class GUI_Oversigt extends GUI_Master {

	public GUI_Oversigt(HorsePolicy horsepolicy) {
		super();

		add(new HTML("<h1>Oversigt</h1>"));
		add(new HTML("Ikrafttrædelse: " + horsepolicy.getTime() + "<hr>"));
		add(new HTML("<h3>Obligatorisk:</h3>"));

		add(new HTML("<b>Livsforsikring: </b>"
				+ horsepolicy.getLivsforsikringAsString() + "<br>"));
		add(new HTML("<b>Automatisk kolikdækning: </b>"
				+ horsepolicy.getKolikdaekningAsString() + "<br>"));
		add(new HTML("<b>Ansvarsforsikring - Tingskade: </b>"
				+ horsepolicy.getTingskadeAsString() + "<br>"));
		add(new HTML("<b>Ansvarsforsikring - Personskade: </b>"
				+ horsepolicy.getPersonskadeAsString() + "<br><hr>"));

		add(new HTML("<h3>Udvidelser:</h3>"));
		add(new HTML("<b>Tab af anvendelighed: </b>"
				+ horsepolicy.getU_anvendelighedstab() + "<br>"));
		add(new HTML("<b>Tab af anv. - Avlshingst: </b>"
				+ horsepolicy.getU_anvendelighedstab_avlshingst() + "<br>"));
		add(new HTML("<b>Sygeforsikring: </b>"
				+ horsepolicy.getU_sygeforsikring() + "<br><hr>"));

		add(new HTML("<h3>Selvrisiko:</h3>"));
		add(new HTML("<b>Kolikoperationsdækning pr. skade: </b>"
				+ horsepolicy.getSelvrisiko_kolik() + "<br>"));
		add(new HTML("<b>Sygeforsikring pr. skade: </b>"
				+ horsepolicy.getSelvrisiko_sygeforsikring() + "<br><hr>"));

	}

}
